package cn.itcast.controller;

import cn.itcast.service.DubboService;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/comsume")
public class DubboController {

    @Reference
    private DubboService dubboService;

    @RequestMapping("/find")
    public String find(){
        dubboService.find();
        return "ok";
    }
}
